package com.tedu.DbDemo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//import com.tedu.DbDemo.mapper.JtOrder;
import com.tedu.DbDemo.mapper.JtOrderMapper;
import com.tedu.DbDemo.pojo.JtOrder;

@RestController
public class JtOrderController {
	//从spring框架的ioc容器中取JtOrderMapper
	//接口的代理类的代理对象
	@Autowired
	JtOrderMapper jtOrderMapper;
	
	@RequestMapping("/")
	public JtOrder selectById() {
		JtOrder jtOrder=jtOrderMapper.selectById(1);
		return jtOrder;
	}

}


